package com.shanyu.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.shanyu.dto.CatalogDto;
import com.shanyu.eo.CatalogEo;
import com.shanyu.service.ICatalogService;

@RestController
@RequestMapping(value = "/catalog")
public class CatalogController {
	
	private Logger logger = LoggerFactory.getLogger(CatalogController.class);
	
	@Autowired
	private ICatalogService catalogService;
	
	@RequestMapping(value = "/item/list",method = RequestMethod.GET)
	public List<CatalogDto> getCatalogList(){
		return catalogService.getAllCatalogDtoList();
	}
	
	@RequestMapping(value = "/list",method = RequestMethod.GET)
	public List<CatalogEo> getList(){
		return catalogService.getAllCatalogList();
	}

}
